const pluginJs = require("@eslint/js");
const reactPlugin = require('eslint-plugin-react');

module.exports = [
    pluginJs.configs.recommended,
    reactPlugin.configs.flat.recommended,
    {
        files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
        rules: {
            "no-unused-vars": "warn",
            "semi": "warn",

            // 关闭校验的规则
            "no-undef": "off",
        }
    }
];